import Layout from '@/layout/index'

const routes = [
  {
    path: '/',
    redirect: '/index'
  },
  {
    path: '/',
    name: 'layout',
    component: Layout,
    children: [
      {
        path: 'index',
        name: 'index',
        component: () => import('@/views/index'),
        meta: { title: '首页' }
      },
      {
        path: 'uiGenerate',
        name: 'uiGenerate',
        component: () => import('@/views/generator/index'),
        meta: { title: '生成' }
      }
    ]
  }
]

export default routes
